package com.lh.java.basic.grammer;
import java.util.Random;


public class TestSwitch {
	public static void main(String[] args) {
		Random rd =new Random();
		for (int i =0;i<20;i++) {			
			int type = rd.nextInt(10);
			System.out.print("Random number is  "+type+"  ,   ");
			switch (type) {
			case 1:
				System.out.println("i am is 1");
				break;
			case 2:
				System.out.println("i am is 2");
				break;
			case 3:
				System.out.println("i am is 3");
				break;
			case 4:
				System.out.println("i am is 4");
				break;
			default:
				System.out.println("i am is unknown");
				break;
			}
		}

	}

}
